<?php
class Model_attribute extends MVC_MODEL {
	/**
	 * @var object SQL
	 */
	public $oDb_attribute;
	
	public function __construct(){
		parent::__construct();
		$this->oDb_attribute = new Db_attribute();
	}
	
	public function getdataAttribute(){
		return $this->oDb_attribute->getdataAttribute($this);
	}
	
	public function getInfoAttribute()
	{
		return $this->oDb_attribute->getInfoAttribute($this->getData('at_id'));
	}
	
	public function deleteAttribute(){
		return $this->oDb_attribute->delete_att($this->getData('at_id'));
	}
	/*public function do_insert_new_attribute(){
		return $this->oDb_attribute->doInsert($this->getAllData(),true);
	}
*/	
	public function update_att($att_id,$att_name,$att_content, $att_status){
		return $this->oDb_attribute->update_att($att_id,$att_name,$att_content,$att_status);		
	}
	public function insert_att($att_name, $att_content,$att_status){
		return $this->oDb_attribute->insert_att($att_name, $att_content,$att_status);		
	}
}
?>